﻿<UserControl x:Class="Demo.Extending" 
     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
     xmlns:VerticalToggleSwitch="clr-namespace:Demo.Controls">
    <Grid VerticalAlignment="Top">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="370"/>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="Auto"/>
        </Grid.ColumnDefinitions>
        <TextBlock TextWrapping="Wrap" HorizontalAlignment="Left" Text="The ToggleSwitch library exposes the base functionality of a toggle switch in the ToggleSwitchBase class. Extending this class allows for even further customized ToggleSwitch controls." />
        <Line Stroke="#70595C64" Grid.Column="1" Y2="120" StrokeThickness="1" Margin="30,0" StrokeDashArray="1"/>
        <VerticalToggleSwitch:VerticalToggleSwitch
            UncheckedContent="LOW"
            CheckedContent="HIGH"
            ZoomFactor="{Binding ZoomFactor}"
            HorizontalAlignment="Left"
            Grid.Column="2" VerticalAlignment="Top"/>
    </Grid>
</UserControl>